A Logical Problem Which you almost confuse your Brain!!!
You go to a Shop you have only 100 INR. In that Shop, There is 3 types of Chocolates, one is 5 INR , another is 0.75 INR and the other is 0.25 INR. You must spend 100 INR with total 100 Chocolates only. Do not exceed or Deceed 100 Chocolates and 100 INR also you must buy all three Chocolates. Find How many Chocolates that you buy by spending 100 INR completely.
Code:
#include <stdio.h>
void main()
{
float a,b,c;
int i,j,k;
for(i=1;i<=100;i++)
{
for(j=1;j<=100;j++)
{
for(k=1;k<=100;k++)
{
a = 5*i;
b = 0.75*j;
c = 0.25*k;
if((i+j+k) == 100 && (a+b+c) == 100)
{
printf("how many 5 rs choco:%d\n",i);
printf("how many .75 rs choco:%d\n",j);
printf("how many .25 rs choco:%d\n",k);
printf("how much 5 rs choco:%.2f\n",a);
printf("how much .75 rs choco:%.2f\n",b);
printf("how much .25 rs choco:%.2f\n",c);
printf("***************\n");
}
}
}
}
}
OUTPUT:
how many 5 rs choco:6 how many .75 rs choco:93 how many .25 rs choco:1 how much 5 rs choco:30.00 how much .75 rs choco:69.75 how much .25 rs choco:0.25 *************** how many 5 rs choco:8 how many .75 rs choco:74 how many .25 rs choco:18 how much 5 rs choco:40.00 how much .75 rs choco:55.50 how much .25 rs choco:4.50 *************** how many 5 rs choco:10 how many .75 rs choco:55 how many .25 rs choco:35 how much 5 rs choco:50.00 how much .75 rs choco:41.25 how much .25 rs choco:8.75 *************** how many 5 rs choco:12 how many .75 rs choco:36 how many .25 rs choco:52 how much 5 rs choco:60.00 how much .75 rs choco:27.00 how much .25 rs choco:13.00 *************** how many 5 rs choco:14 how many .75 rs choco:17 how many .25 rs choco:69 how much 5 rs choco:70.00 how much .75 rs choco:12.75 how much .25 rs choco:17.25 ***************
I just coded using C you can do this with any other Languages. By Coding this you can find 5 solutions because 5 times 100 chocoloates and INR came. Therefore these are the Solutions....
UNIX-The Legendary OS
Intro to UNIX:
How many of them hear the word UNIX. Unix is an Operating System, For me It is Parent of all other OS and First OS.
![]() |
| UNIX-Parent Of All Other OS |
Evolution Of UNIX:
Over Multimillions years ago, First A Single Cell is born. Later it is evolving into MultiCellular Organisms like Ant,Frog,Snake,Eagle,Lion,Human. Like That UNix is evolved into FreeBSD and Then later Windows, Linux, Mac OS, Android. So Everyone Use these all ,So Everyone use This UNIX 100%
![]() |
| Unix |
I have provided Some links(OS Name) above.These are belong to UNix Family. Since Windows has some BSD Code it belongs to FreeBSD, So it also belongs to UNix.
How to install Snap Store on any Linux Distributions?
You can see Android Store(Play Store, Uptodown), Windows Store, Apple store. Most of the members may or may not be know about the Linux Store i.e. Snap Store.- Platform: Linux.
- Snapd already installed.
- Make sure you have a well internet connection.
# apt update# apt install snapd# systemctl enable --now snapd apparmor
$ snap install hello-world
hello-world 6.3 from Canonical✓ installed
$ hello-world
Hello World!# snap install snap-storeAOMEI Partition Assistant
AOMEI Partition manager,My favourite partition manager which helps to manage partition easily in a simple way.Personally,On getting tight corners in my computer for partitioning the drive it helps me a lot.uTorrent
How to create a partition or volume ?
INDIA's First Micro Processor
SHAKTI processors are based on the RISC-V (Reduced Instruction Set Computer-5) ISA(Instruction Set Architecture). The processors are based on 22 nm FinFET(Fin Field Effect Transistor) technology. SHAKTI has envisioned a family of processors as part of its road-map, catering to different segments of the market. They have been broadly categorized into "Base Processors", "Multi-Core Processors" and "Experimental Processors". The E and C-classes are the first set of indigenous processors aimed at Internet of Things (IoT), Embedded and Desktop markets. The processor design is free of any royalty and is open-sourced under the Modified BSD License.
![]() |
| https://shakti.org.in/ |
Base Processors
E-Class
The E-Class is a 32/64 bit microcontrollers capable of supporting all extensions of RISC-V,aimed at low compute applications and low-power.
C-Class
The C-Class is a 64 bit microcontroller processor, aimed at midrange embedded applications.It gives a high performance in Linux based applications.It can also customized up to 2 GHz.
I-Class
The I-Class is a 64 bit processor which targets the Compute,Mobile,storage and Networking platforms.The operational clock frequency of this processor is 1.5-2.5 GHz.
Multi-Core Processor
M-Class
The M-Class is a combination of C and I - Class Cores.The M-Class Processor targets the general purpose compute,low end server and Mobile applications
S-Class
The S-Class is 64 bit Processor aimed at Desktop,Enterprise server Application.Its supports 2-16 cores with a clock frequency of about 1.2–3 GHz.
H-Class
The H-Class is a 64 bit processor aimed at highly parallel enterprise, HPC and Analystics Applications.It has up to 128 cores with multiple accelerator per core.
Experimental Processors
T-Class
The T-Class is aimed to provide additional hardware support for securing information from Memory based attacks.Its design focuses on a unified hardware framework for mitigating spatial and temporal memory attacks.
F-Class
The F-class is a fault-tolerant version of the base class processor. Features include redundant compute blocks (like DMR and TMR), temporal redundancy modules to detect permanent faults, lock-step core configurations, fault localization circuits, ECC for critical memory blocks and redundant bus fabrics.
If you want to Know about Shakti Processor visit:https://shakti.org.in/
How to create a multiboot usb stick using Ventoy?
Popular Posts
-
Intro to UNIX : How many of them hear the word UNIX . Unix is an Operating System, For me It is Parent of ...
-
AOMEI Partition manager,My favourite partition manager which helps to manage partition easily in a simple way.Personally,On getting ti...
-
SHAKTI processors are based on the RISC-V (Reduced Instruction Set Computer-5) ISA(Instruction Set Architecture). T...
Social Media Icons
About Me
Contact Form
Search This Blog
Archive
Blog Description
Featured Posts
-
Intro to UNIX : How many of them hear the word UNIX . Unix is an Operating System, For me It is Parent of ...
-
AOMEI Partition manager,My favourite partition manager which helps to manage partition easily in a simple way.Personally,On getting ti...
-
SHAKTI processors are based on the RISC-V (Reduced Instruction Set Computer-5) ISA(Instruction Set Architecture). T...






















