Welcome to AMIE Study - AMIE India Students Forum

AMIE Study - AMIE India Students Forum

collapse collapse

* Shoutbox

Refresh History
  • kirannm: hii
    February 18, 2018, 03:39:53 PM
  • GCPATIL: Can I reregistration of section A done by online procedure
    January 30, 2018, 06:45:08 PM
  • girish_amie: Please upload electrical engineering latest question paper
    December 06, 2017, 09:25:40 AM
  • JYOTI VERMA: agr kisi ko apna exam city and center change krana hom to use kya krna chahiye plz suggest.
    October 14, 2017, 01:16:11 PM
  • JYOTI VERMA: amie ka exam center kaise change kr skte hai agr kiisi ko pta ho to plz btaiye .
    October 14, 2017, 01:15:31 PM
  • anoop.goyal9: error in online fee payment for winter 2017 examination
    October 12, 2017, 07:23:34 AM
  • ramajit: [link]
    October 06, 2017, 12:34:12 PM
  • ramajit: yes.. results announced... me 2/3 passed in Sec-B prodn Engg... xo xo... wow....
    October 06, 2017, 12:34:09 PM
  • suji.sujithraj: Guys check your results... its announced...!!!
    October 06, 2017, 10:26:53 AM
  • ramajit: summer'17 result will come or not ?
    October 06, 2017, 06:44:28 AM
  • jitu12341: Result has been declared ♡♡♡♡
    October 06, 2017, 06:30:56 AM
  • jitu12341: breaking news results will be publshed in March 18 along with winter 17
    October 04, 2017, 12:54:36 PM
  • ramajit: any tentative date aware about Summer'17 result
    October 03, 2017, 03:13:48 PM
  • nelokulood: What is the last date to apply for lab and project for winter 2017 session
    October 02, 2017, 11:39:31 AM
  • nelokulood: When will amie summer  2017 results be published
    October 02, 2017, 11:38:50 AM
  • SnrTech: please upgrade my membership to super member I already made payments Rs.500/- into bank account
    September 27, 2017, 11:17:12 PM
  • jitu12341: Is there anybody having EL 404, circuit and field theory notes  please mail on [email protected]
    September 23, 2017, 05:53:34 AM
  • jitu12341: Result is expected in first week of October
    September 23, 2017, 05:48:39 AM
  • manirock87: Result kab aayega for summer 2017
    September 22, 2017, 06:59:35 AM
  • mudassir.search007: Do i need to pay a separate fee for the Section A examination after paying the re-registration Fee (SEC A)
    September 20, 2017, 10:25:06 PM

* Search


* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Board Stats

  • stats Total Members: 48503
  • stats Total Posts: 27304
  • stats Total Topics: 6595
  • stats Total Categories: 6
  • stats Total Boards: 31
  • stats Most Online: 626

Author Topic: Tough C Programme of Winter 2007, Section A (D)  (Read 590 times)

Description:
May 03, 2012, 12:09:02 PM
  • Guest
Advertisement
Problem is Attached and output screen shot is attached

programme:
----------------------------------------------------------------------------------------------
#include <stdio.h>
int main (void)
{
    int triangular, loopcount, total;
     
    loopcount = 0;
    total = 0;
    printf ("Enter number: ");
    scanf ("%d", &triangular);
   
    printf("IN ADDITION TO THE OUTPUT AS REQUIRED IN THE PROBLEM IT DISPLAYSn");
    printf("THE ALL POSSIBLE TRIANGULAR NUMBERS BETWEEN 0 AND Nn");
    while (total < triangular)
    {
           /*IN ADDITION TO THE OUTPUT AS REQUIRED IN THE PROBLEM IT
          DISPLAYS THE ALL POSSIBLE NUMBERS BETWEEN 0 AND N*/
   
    printf("Possible triangular numbers: %dn", total);
    loopcount = loopcount+1;
    total = total + loopcount;
    }
   if (triangular == total)
               
    printf ("The give number %d is trinagular: %dn", triangular, triangular == total);
           
    else
    printf ("The given number %d is non-trinagular: %d", triangular, triangular == total);  
     
    getch ();
}
« Last Edit: January 01, 1970, 04:00:00 AM by Guest »


May 03, 2012, 08:24:21 PM
Reply #1
  • Guest
« Last Edit: January 01, 1970, 04:00:00 AM by Guest »
 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1369 Views
Last post May 24, 2010, 02:38:54 PM
by ritwik007
1 Replies
902 Views
Last post April 04, 2012, 11:03:52 PM
by Anonymous
4 Replies
2161 Views
Last post February 20, 2013, 10:17:43 PM
by AMIEKEKA
7 Replies
2279 Views
Last post March 29, 2014, 12:07:24 PM
by chetanwarange
0 Replies
3362 Views
Last post October 04, 2013, 04:34:04 PM
by AMIEKEKA
2 Replies
1747 Views
Last post June 21, 2014, 11:27:02 AM
by Aartipass
0 Replies
1269 Views
Last post February 19, 2016, 09:45:02 AM
by karmakar.satadal

* Search

* Subscribe to Forum

Enter your email address:

Advertisement