Preview

i am a pakistani

Good Essays
Open Document
Open Document
747 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
i am a pakistani
Code 1:
1. Write a c program to reverse a given number
2. C program to find reverse of a number
3. C program to reverse the digits of a number
4. Reverse of a number in c using while loop

#include int main(){ int num,r,reverse=0;

printf("Enter any number: "); scanf("%d",&num);

while(num){ r=num%10; reverse=reverse*10+r; num=num/10; }

printf("Reversed of number: %d",reverse); return 0;
}

Sample output:
Enter any number: 12
Reversed of number: 21
1. C program to check even or odd
2. C determine odd or even
3. How to check odd number in c
4. How to determine odd or even in c
5. C even odd test

#include

int main(){

int number; printf("Enter any integer: "); scanf("%d",&number);

if(number % 2 ==0) printf("%d is even number.",number); else printf("%d is odd number.",number); return 0;

}
1. C program to add digits of a number
2. C program for sum of digits of a number
3. C program to calculate sum of digits

#include int main(){ int num,sum=0,r; printf("Enter a number: "); scanf("%d",&num); while(num){ r=num%10; num=num/10; sum=sum+r; } printf("Sum of digits of number: %d",sum); return 0;
}

Sample output:
Enter a number: 123
Sum of digits of number: 6
#include
#include void main()
{
float length, breadth, radius, aor, por, aoc, coc; printf ("\nEnter the Length and Breadth of the Rectangle: "); scanf("%f %f", &length,&breadth); printf("\nEnter the Radius of the Circle: "); scanf("%f", &radius); aor = length*breadth; por= 2*(length+breadth); aoc = 3.14*radius*radius; coc = 2*radius*3.14; printf("\nThe area of the rectangle is: %f", aor); printf("\nThe perimeter of the rectangle is: %f ", por); printf("\n\nThe area of the Circle with radius %f is: %f ", radius, aoc); printf("\nThe circumference of the same circle is: %f", coc); getch(); }

You May Also Find These Documents Helpful

  • Good Essays

    A Part-Time Indian

    • 791 Words
    • 4 Pages

    Entering a new environment, especially when it comes to being a new student, can be terrifying, however, it can be further alarming when you are a minority. Being a minority in a large school population increases the student's chances of being rejected, bullied, and possibly harassed by their peers. In Sherman Alexie’s The Absolutely True Story of a Part-Time Indian, the difficulty of transferring schools is brilliantly conveyed when the protagonist, Arnold Spirit Jr., decides to break through the confinements of his racial status. Alexie’s work, directed toward minorities, effectively displays the protagonist’s struggle to adapt to a new social environment by utilizing significant visuals, illustrated by Ellen Forney.…

    • 791 Words
    • 4 Pages
    Good Essays
  • Better Essays

    INDIAN

    • 1007 Words
    • 5 Pages

    Question 1: In the chapter, "Rowdy Sings the Blues," (48-53) Rowdy yells, “Don’t touch me, you retarded fag!" at Arnold. The language is offensive. It’s hurtful, ignorant, and crude, but it’s not uncommon to hear young boys talk that way. Why does Rowdy use that language?…

    • 1007 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    Living in this Pashtun society throughout my lifetime has been horrific. I feel mentally challenged…

    • 712 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Search for my Tongue and Presents from my Aunts in Pakistan both show people thinking about their ‘roots’. How does each poem convey their thoughts and feelings? In “Search for my Tongue” and “Presents from my Aunts in Pakistan”, the poets are conveying to the reader the strong feelings they have about their roots, and how it affects them in everyday life. Both poems talk of women who have Asian roots, but are now living in other countries. In Search for my Tongue the poet tries to express to the reader, how very strange it feels to have been brought up with one language, and to have to give it up to make space for a new language. Her language is something very important to her, it isn’t just a language but it also represents her culture and identity. The poet feels that, because, she has had to speak this new language, and live a new way of life, that she is losing her native language, culture and identity. The poet conveys her feelings by using strong images that show exactly how she feels. The other poem “Presents” uses visual items like clothes to show the difference in cultures: “my costume clung to me I was aflame.” Moniza Alvi sees her Pakistani clothes as a “costume” rather than normal clothes. She calls it this because they are so different to English clothes that when she wears them it’s like she is putting on a play and she is an actress at the weekends. “I longed for denim and corduroy.” Most people see Pakistani clothes as beautiful creations but she doesn’t like them and would prefer to wear boring English clothes such as jeans. All through the poem “presents” the poet talks about the difference in the two cultures and explains that she feels she has “no fixed nationality” and like the other poet wants empathy form the reader and wants the reader to know how it feels to have two separate parts of your life. Moniza Alvi calls her Pakistani clothes her “weekend clothes” this shows that she…

    • 710 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Where I M From

    • 252 Words
    • 2 Pages

    I’m from don’t waste your time and the grass looks greener on the other side,…

    • 252 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    In a Hindu family, the head of the family is the Griha Swami (Lord of the House) and his wife is the Griha Swamini(Lady of the House). The Sanskrit words Grihast and Grihasta perhaps come closest to describing the entire gamut of activities and roles undertaken by the householder or housewife. Grih is the Sanskrit root for house or home; Grihasta and Grihast are derivatives of this root, as is Grihastya. The couple lives in the state called Grihastashram or family system and together they nurture the family and help its members (both young and old) through the travails of life. The woman who increments the family tree (bears children) and protects those children is described as the Grihalakshmi (the wealth of the house) and Grihashoba (the glory of the house). The elders of the family are known as Grihshreshta. The husband or wife may engage in countless other activities which may be social, religious, political or economic in nature for the ultimate welfare of the family and society. However, their unified status as joint householders is the nucleus from within which they operate in society. The 'status' of a woman as a housewife anchors them in society and provides meaning to their activities within the social, religious, political and economic framework of their world. However, as India undergoes modernisation, many women are in employment, particularly in the larger cities such as Mumbai or Delhi, where most women will work.…

    • 305 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    : How to find the area of a circle by using a formula pi x r2…

    • 899 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Minar-E-Pakistan

    • 668 Words
    • 3 Pages

    • The Shah Faisal Masjid in Islamabad, Pakistan, is among one of the largest mosques in the world. • It is a state National…

    • 668 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Paki? Akakath?

    • 5427 Words
    • 22 Pages

    1. Tatra ?hatv? ra??o? uppatti kathetabb?. From there, it should be spoken the birth of the king. (So pana)? amh?ka? satthuno bodhippattito puretarameva mah?malaya ra??he vanacaraka? pa?icca tassa bhariy?ya kucchiya? pa?isandhi? ga?hi. He before the enlightentment (itself) of our Master, conceived due to a hunter in the womb of his wife. Nava??ham?s?vas?ne m?tukucchito nikkhamitv? kamena va??hanto vi???bh?va?? p?pu?i. (He) having left from the womb of the mother after nine and half months, growing gradually became a knowledged one. Tassa pit? eka? d?rika? ?netv? puttassa gehe ak?si. His father, having brought a girl made a house for the son.Aparabh?ge tassa pit? k?lamak?si. Later on his father passed…

    • 5427 Words
    • 22 Pages
    Powerful Essays
  • Satisfactory Essays

    punjabians

    • 451 Words
    • 2 Pages

    The MaggieMoo's® Ice Cream and Treatery is widely recognized for serving award-winning ice cream in a whimsical, playful environment. Acquired by NexCen Brands, Inc. in March 2007, the company operates more than 200 treateries across the United States. In conjunction with their campaign for community giving, the company wanted to turn Miss Maggie Moo, the company’s “spokescow”, into a celebutant. They wanted her out on the town, in the news, and on the minds of tweens (and their mothers) nationwide. They turned to Ogilvy PR to make it happen.…

    • 451 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    When something that began sometime ago completes, it feels good. I could’ve said “finished” here but the word “complete” has a completely different meaning. That’s what most of us don’t understand, comprehending and identifying the differences between things that are similar yet different.…

    • 1028 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Managing the panel of eminent and world class corporate trainers, especially from UK who could deliver short term workshops or courses on demand.…

    • 1202 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    Indian

    • 1641 Words
    • 7 Pages

    K a s h m i r i / P e s h w a r i N a a n Filled…

    • 1641 Words
    • 7 Pages
    Good Essays
  • Good Essays

    My Country Pakistan

    • 329 Words
    • 2 Pages

    While stretching on my beanbag, I strained my neck to take a glimpse of what was happening below my apartment balcony. Though the sun was still on the horizon, I realized that, activity around Jodia bazaar, the heart of Karachi, had already resumed.…

    • 329 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    I Love Pakistan

    • 261 Words
    • 2 Pages

    Love is a fundamental passion of man. Man needs and desires sympathy, help and love form fellow human beings. Man is afraid of living alone. He is a social being . his life is bound up in a thousand ways with the people around him. He must live in a country and build a home. He must seek union with his fellow beings. Man cannot but love the country where he and his family and the people he needs and loves live. The country is his home, and the nation is his family. It is only natural that he should love them both. I love Pakistan because it is my country and its love is my blood. It has fed me. It has protected me and it has given me every thing it has. This fair land has become flesh of my flesh and bone of my bone. It is the land of my forefathers. They have loved it. They have toiled here. Every inch of this soil is rich with their sweat and blood. Their bones are buried here. They have become a part of this land. To me this land is most precious and sacred. This country is the embodiment of all that I love and cherish. It is not just a piece of land to me. It is a concrete symbol of the traditions the aspirations and the hopes of my nation it is our past our present and our future. In the political sense Pakistan is a new…

    • 261 Words
    • 2 Pages
    Satisfactory Essays